package com.mysoft.gfyx.clue.controller;

import com.mysoft.framework.mvc.api.Controller;
import com.mysoft.framework.rpc.annotation.PubAction;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.clue.service.DataPermissionService;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

@PubService(value = "/dataPermissionPub", prefix = RequestPrefix.PUB)
public class DataPermissionPubController extends Controller {
    @Resource
    private DataPermissionService dataPermissionService;

    @PubAction(value = "/getUserPermissionArea", method = RequestMethod.POST)
    @ApiOperation(value = "/getUserPermissionArea", notes = "获取当前登录用户所属区域的地区权限")
    @ApiImplicitParams({
    })
    public Object getUserPermissionArea() {
        return dataPermissionService.getUserPermissionArea();
    }
}
